<#include "/macro.include"/>
<#include "/custom.include">
<#assign className = table.className>   
package ${basePackage}.dataobject;

<#--import java.io.Serializable;-->
import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
/**
 * 类名: ${className}
 * 描述: 映射${table.sqlName}表
 * 作者: wangjt
 */
public class ${className}DO implements Serializable{
    <#list table.columns as column>
    <#--<#if column.pk>
    /**
	 * ${column.columnAlias}
	 */
	private Integer ${column.columnNameLower};-->
	<#if column.javaType == "Boolean">
	
	/**
	 * ${column.columnAlias}
	 */
	private Integer ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.String">
	
	/**
	 * ${column.columnAlias}
	 */
	private String ${column.columnNameLower};
	<#elseif column.javaType == "java.math.BigDecimal">

    /**
    * ${column.columnAlias}
    */
    private BigDecimal ${column.columnNameLower};
	<#elseif column.javaType == "java.util.Date">
	
	/**
	 * ${column.columnAlias}
	 */
	private Date ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.Long">
	
	/**
	 * ${column.columnAlias}
	 */
	private Long ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.Integer">
	
	/**
	 * ${column.columnAlias}
	 */
	private Integer ${column.columnNameLower};
	<#else>
	
	/**
	 * ${column.columnAlias}
	 */
	private ${column.javaType} ${column.columnNameLower};
	</#if>
	</#list>

<#list table.columns as column>
	<#if column.javaType == "java.lang.String">
		<#assign type = "String">
	<#elseif column.javaType == "java.util.Date">
		<#assign type = "Date">
	<#elseif column.javaType == "java.math.BigDecimal">
		<#assign type = "BigDecimal">
	<#elseif column.javaType == "java.lang.Integer">
		<#assign type = "Integer">
	<#else>
		<#assign type = column.javaType>
	</#if>
	public ${type} get${column.columnNameLower?cap_first}(){
		return ${column.columnNameLower};
	}
	public void set${column.columnNameLower?cap_first}(${type} ${column.columnNameLower}){
		this.${column.columnNameLower} = ${column.columnNameLower};
	}

</#list>





}